package com.example.blog.service;

import com.example.blog.dto.CommentDTO;
import com.example.blog.pojo.PageBean;

import java.util.List;

public interface CommentService {

    PageBean<CommentDTO>getlistbyarticleid(Integer pageNum,
                                           Integer pageSize,Integer articleid);
    List<CommentDTO> getlistbyuserid();

    boolean addcomment(Integer articleid,String content);

    boolean deletecomment(Integer id,Integer userid);
}
